package com.sqinterface;

/**
 * @Auther: shiquan
 * @Date: 2024/10/22 - 10 - 22 -11:35
 */
public class Frog extends Animal implements Swim{

    public Frog() {
    }

    public Frog(String name, int age) {
        super(name, age);
    }

    @Override
    public void eat() {
        System.out.println("青蛙在吃虫子");

    }

    @Override
    public void swim() {
        System.out.println("青蛙在游泳");

    }
}
